package stackoverflow.domain.service;

import java.util.List;
import java.util.Set;

import stackoverflow.domain.question.Answer;
import stackoverflow.domain.question.Question;
import stackoverflow.domain.question.Tag;
import stackoverflow.domain.user.User;

//@PreAuthorize("hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')")
public interface QuestionService
{
	List<Question> viewQuestions();
	Question askQuestion(User user, String questionText, Set<Tag> tags);
	Answer postAnswer(User user, String postIdOfQuestion, String answerText);
	List<Question> viewQuestionsThatHaveTag(Set<Tag> tags);

//	Question viewQuestionDetails(PostId questionId);
//	Answer postAnswer(User user, PostId postIdOfQuestion, String answerText);
//	PostId postComment(User user, String postId, String commentText);
}
